package com.inlycat.entity;

import java.io.Serializable;
import java.util.Date;

import javax.validation.constraints.Min;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author jarvan4dev@163.com
 * @since 2015年8月12日下午1:22:09 影片属性实体类
 */

// json转换的时候，用于过滤null字段
// @JsonInclude(Include.NON_NULL)
public class VideoAttr implements Serializable {

	private static final long serialVersionUID = 9142730157826278211L;

	private Long id;
	private Long videoId;
	private Integer thumb;
	private Integer tramp;
	private Integer playCount;

	private Integer storeCount;
	
	private Integer barrageCount;

	@Min(value = 0, message = "{videoAttr.boxOffice.min}")
	private Integer boxOffice;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	// 格式化日期
	private Date updateTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getVideoId() {
		return videoId;
	}

	public void setVideoId(Long videoId) {
		this.videoId = videoId;
	}

	public Integer getThumb() {
		return thumb;
	}

	public void setThumb(Integer thumb) {
		this.thumb = thumb;
	}

	public Integer getTramp() {
		return tramp;
	}

	public void setTramp(Integer tramp) {
		this.tramp = tramp;
	}

	public Integer getPlayCount() {
		return playCount;
	}

	public void setPlayCount(Integer playCount) {
		this.playCount = playCount;
	}

	public Integer getBarrageCount() {
		return barrageCount;
	}

	public void setBarrageCount(Integer barrageCount) {
		this.barrageCount = barrageCount;
	}

	public Integer getStoreCount() {
		return storeCount;
	}

	public void setStoreCount(Integer storeCount) {
		this.storeCount = storeCount;
	}

	public Integer getBoxOffice() {
		return boxOffice;
	}

	public void setBoxOffice(Integer boxOffice) {
		this.boxOffice = boxOffice;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	public String toString() {
		return "VideoAttr [id=" + id + ", videoId=" + videoId + ", thumb="
				+ thumb + ", tramp=" + tramp + ", playCount=" + playCount
				+ ", storeCount=" + storeCount + ", barrageCount="
				+ barrageCount + ", boxOffice=" + boxOffice + ", updateTime="
				+ updateTime + "]";
	}

}
